<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var test=20;
    test = "张三";
    alert(test);

    {

        var age=20;
    }
    alert(age);
</script>
</body>
</html>